---
title: Main Menu
description: Displays an 8-bit game main menu interface.
---

import MainMenu from "@/components/ui/8bit/blocks/main-menu";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";

<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
  <CopyCommandButton
    copyCommand="pnpm dlx shadcn@latest add @8bitcn/main-menu"
    command="pnpm dlx shadcn@latest add @8bitcn/main-menu"
  />
</div>

<ComponentPreview title="8-bit Main Menu block" name="main-menu">
  <MainMenu className="w-full max-w-[400px]" />
</ComponentPreview>

## Installation

---

<InstallationCommands packageName="main-menu" />

## Usage

---

```tsx
import MainMenu from "@/components/ui/8bit/blocks/main-menu"
```

```tsx
<MainMenu className="w-full max-w-[400px]" />
```

